<h2>Customer List</h2>
<br />
<table class="table table-striped table-bordered table-condensed"> <!-- cellspacing='0' is important, must stay -->

	<!-- Table Header -->
	<thead>
		<tr>
			<th style="width:10%">รหัสลูกค้า</th>
			<th style="width:20%">ชื่อลูกค้า</th>
			<th style="width:10%">ที่อยู่</th>
			<th style="width:10%">โทรศัพท์</th>
			<th style="width:10%">โซน</th>
			<th style="width:10%">ประเภทลูกค้า</th>
			<th style="width:10%">ประเภทราคา</th>
			<th style="width:5%">Checkin</th>
		</tr>
	</thead>
	<!-- Table Header -->
	
	<!-- Table Body -->
	<tbody>
<?
	if(!empty($dataList)){
	?>
		<?
		
		foreach($dataList as $in=>$val){
		?>
			<tr>
				<td><?php echo $val->KUNNR?></td>
				<td><?php echo $val->NAME?></td>
				<td><?php echo $val->ADDRESS?></td>
				<td><?php echo $val->TELEPHONE?></td>
				<td><?php echo $val->TZONE?></td>
				<td><?php echo $val->CUSTYP_TXT?></td>
				<a class="" href="<?php echo $current?>editlocate/<?php echo $val->KUNNR?>">Edit</a></td>
			</tr>
		<?
		}
		?>
<?
	}else{
	?>
		<tr>
			<td colspan="6"><h2>ไม่พบข้อมูล</h2></td>
		</tr>
	<?
	}
	?>
	
	</tbody>
	
	<!-- Table Body -->

</table>
<div class=" pagination">
        <ul class="pagination">
            <?
            echo $pagination->create_links();
            ?>
        </ul>    
    </div>
    